/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.component.figure;

import org.eclipse.draw2d.Graphics;

import com.cea.papyrus.core.figures.connection.EdgeFigure;

/**
 * This is the figure of the connector.
 * 
 * @author Patrick Tessier
 * @date 14 Spetember 2006
 */
public class ConnectorFigure extends EdgeFigure {
	

	/**
	 * 
	 */
	public ConnectorFigure() {
		super();
		setLineWidth(1);
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.draw2d.Shape#paintFigure(org.eclipse.draw2d.Graphics)
	 */
	/**
	 * 
	 * 
	 * @param graphics 
	 */
	@Override
	public void paintFigure(Graphics graphics) {
		graphics.pushState();
		super.paintFigure(graphics);
		if (img!=null){
		super.FillFigure(graphics);}
		graphics.popState();
	}
}